package com.fortune.cat.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author zhaozeyang
 * @date 2019/4/26 10:44
 * @description
 */
@AllArgsConstructor
@Getter
public enum RateLimiterKeyResolverEnums {

    GLOBAL_ROUTE(1, "单个路由全局限流"),
    CLIENT_IP(2,"单个路由根据客户ip限流"),
    HEADER(3,"根据request中指定header参数限流"),
    QUERY(4,"根据request中指定query参数限流"),
    PATH(5,"指定请求路径限流"),
    PATH_QUERY(6,"指定路径中query参数"),
    PATH_HEADER(7,"指定路径header参数"),
    ;

    private Integer type;

    private String name;


}
